gccFLAGS = -Wall -c -g

object = mytool1.o mytool2.o main.o

app: main

main: ${object}
	gcc -o $@ ${object} -o main

main.o: functions/mytool1.h functions/mytool2.h
	gcc ${gccFLAGS} main.c -o main.o

mytool1.o: functions/mytool1.c functions/mytool1.h
	gcc ${gccFLAGS} functions/mytool1.c -o mytool1.o

mytool2.o: functions/mytool2.c functions/mytool2.h
	gcc ${gccFLAGS} functions/mytool2.c -o mytool2.o

clean:
	rm -f *.o main
